home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
program
/
cgrphxdv.lha
/
CGraphX
/
C
/
slib
/
CGFX_lib.c
next >
Wrap
C/C++ Source or Header
|
1995-12-10
|
549b
|
36 lines
#ifdef __SASC_650
#include <constructor.h>
#include <proto/exec.h>
void __regargs __autoopenfail(char *);
extern LONG __CGFXlibversion;
struct Library *CyberGfxBase;
static struct Library *LibBase;
CBMLIB_CONSTRUCTOR(OpenCGFX)
{
if (CyberGfxBase=LibBase=OpenLibrary("cybergraphics.library",__CGFXlibversion)) return 0;
__autoopenfail("cybergraphics.library");
return 1;
}
CBMLIB_DESTRUCTOR(CloseCGFX)
{
if (LibBase)
{
CloseLibrary (LibBase);
LibBase=CyberGfxBase=NULL;
}
}
#else
#error SAS/C 6.50 or newer required.
#endif